package org.example.course.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.course.domain.Standard;
import org.example.course.dto.StandardModel;

/**
 * @Classname StandardMapper
 * @Description TODO
 * @Date 2020/5/10 9:38
 * @Created by
 */
@Mapper
public interface StandardMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Standard record);

    int insertSelective(Standard record);

    Standard selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Standard record);

    int updateByPrimaryKey(Standard record);

    int batchInsert(@Param("list") List<StandardModel> list);

    int deleteByPrimaryKey(@Param("checkId") Integer checkId, @Param("checkevaluationId") Integer checkevaluationId);

    Standard selectByPrimaryKey(@Param("checkId") Integer checkId, @Param("checkevaluationId") Integer checkevaluationId);

    List<StandardModel> findStandByCheckId(@Param("checkId") Integer checkId);

    List<Standard> findByCheckevaluationIds(@Param("ids") List<Integer> ids);
}